<?php
class AppController extends Controller {
	public $components = array("Auth");
	public function beforeFilter(){
       	$this->AuthComponent->deny("/users");
		$this->AuthComponent->deny("/manager");
                
		$this->AuthComponent->allow("/users/register");
		$this->AuthComponent->allow("/users/login");
                
                $this->AuthComponent->loginRedirect = "/users";
		$this->AuthComponent->logoutRedirect = "/home";
		$this->AuthComponent->check();
        }
}

?>
